Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cibuildwheel config #270

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Add cibuildwheel config #270

merged 3 commits into from
Nov 21, 2023

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Nov 17, 2023

Try using cibuildwheel so we can eventually publish wheels to pypi automatically.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (feb2031) 86.58% compared to head (d61b8f4) 86.58%.

❗ Current head d61b8f4 differs from pull request most recent head 31a2692. Consider uploading reports for the commit 31a2692 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #270   +/-   ##
=======================================
  Coverage   86.58%   86.58%           
=======================================
  Files          24       24           
  Lines        2222     2222           
=======================================
  Hits         1924     1924           
  Misses        298      298           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maxnoe maxnoe force-pushed the build_wheels branch 5 times, most recently from 386f5ee to 9b76f9c Compare November 21, 2023 09:38
@maxnoe maxnoe marked this pull request as ready for review November 21, 2023 11:10
@maxnoe
Copy link
Member Author

maxnoe commented Nov 21, 2023

I am happy with the test results, seems to work properly now, so I reverted the debugging steps and made it again so it only publishes on tags.

@maxnoe maxnoe requested a review from orelgueta November 21, 2023 11:24
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it matter that we build everything on ubuntu as a test for linux instead of alma? It's not super relevant for this PR, I am asking because that question was raised in the simtools context.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The base image for the linux build doesn't matter at all. Since the actual build happens another layer down in the "manylinux" docker images, which are actually based on centos:

https://github.com/pypa/manylinux

Copy link
Member Author

@maxnoe maxnoe Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have a choice here, binary wheels delivered to pypi must follow these standards.

We can then test if the wheels build that way run correctly on our reference system, which they should.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, that answers the question also for simtools then. We can do all of the building in ubuntu, even building the containers, and just make sure that the tests (unit and integration) run well in the alma container.

Copy link
Member Author

@maxnoe maxnoe Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simtools itself is not a compiled module, so the story is different (much simpler, since you upload a platform-independet wheel to pypi).

The question how to compile the needed binary tools by simpipe is different.

@maxnoe maxnoe merged commit cd80145 into main Nov 21, 2023
4 checks passed
@maxnoe maxnoe deleted the build_wheels branch November 21, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants